package com.define.ssh.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/***
 * 监控范围定义
 * @author sc
 *
 */
@Entity
@Table(name = "m_warn_scope")
public class MWarnScope implements java.io.Serializable {

	// Fields
	private Long id;
	private Integer stype;//监控范围编号
	private String sname;//监控范围名称
	private Integer updatetype;
	private Date updatetime;
	private String describe;//描述

	// Constructors

	/** default constructor */
	public MWarnScope() {
	}

	

	
	@GeneratedValue(generator="generator")
	@Id
	@GenericGenerator(name = "generator", strategy = "identity") 
	@Column(name = "id", unique = true, nullable = false, precision = 20, scale = 0)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	
	
	@Column(name = "stype", unique = true, nullable = false, insertable = true, updatable = true)
	public Integer getStype() {
		return this.stype;
	}

	public void setStype(Integer stype) {
		this.stype = stype;
	}

	@Column(name = "sname", unique = false, nullable = false, insertable = true, updatable = true, length = 60)
	public String getSname() {
		return this.sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	@Column(name = "updatetype", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getUpdatetype() {
		return this.updatetype;
	}

	public void setUpdatetype(Integer updatetype) {
		this.updatetype = updatetype;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updatetime", unique = false, nullable = false, insertable = true, updatable = true, length = 19)
	public Date getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}


	@Column(name = "sdescribe", unique = false, nullable = false, insertable = true, updatable = true, length = 60)
	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}
	
	

}